package sctu.edu.java.year2016.team04.Liliang.LianXi;

import org.jsoup.Jsoup;
import sctu.edu.java.year2016.team05.zengkun.day20160601.chapter9_3.Link;

import javax.swing.text.Document;
import java.io.IOException;

/**
 * Created by asus on 2016/6/13.
 */
public class SctuClient {
    public static void main(String[] args) {
        try {
            org.jsoup.nodes.Document document = Jsoup.connect("http://www.sctu.edu.cn").get();
            String text = document.body().text();
            String html = "<html><head><title>First parse</title></head>"
                    + "<body><p>Parsed HTML into a doc.</p></body></html>";
            org.jsoup.nodes.Document doc = Jsoup.parse(html);
            System.out.println(html);

        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
